package com.nt.test.service.impl;

import com.nt.test.entity.Form;
import com.nt.test.mapper.FormMapper;
import com.nt.test.service.FormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "FormService")
public class FormServiceImpl implements FormService {

    @Autowired
    private FormMapper formMapper;

    @Override
    public int addForm(Form form) {
        return formMapper.insertForm(form);
    }

    @Override
    public List<Form> listFroms() {
        return formMapper.listFroms();
    }
}
